API Documentation
MAIN PAGE
NAMESPACES
CLASSES
Documentation
Headers
NilkinsAstraeus
Graphics
Materials
Pbs
PbsMaterial.h
1
// PbsMaterial.h
3
//
5
6
namespace
nkAstraeus
7
{
14
class
PbsMaterial
final :
public
Material
15
{
16
public :
17
21
PbsMaterial
() ;
25
~PbsMaterial
() ;
26
27
// Getters
31
virtual
MATERIAL_TYPE
getType
()
const override
;
35
nkMaths::Vector
getLightDirection
()
const
;
39
nkMaths::Vector
getLightColor
()
const
;
43
nkMaths::Vector
getAlbedoColor
()
const
;
47
nkMaths::Vector
getEnvironmentColor
()
const
;
51
float
getMetalness
()
const
;
55
float
getRoughness
()
const
;
59
nkGraphics::Texture
*
getAlbedoTexture
()
const
;
63
nkGraphics::Texture
*
getEnvironmentTexture
()
const
;
67
nkGraphics::Texture
*
getIrradianceTexture
()
const
;
71
bool
getEnvironmentTextureIsCubeByDefault
()
const
;
75
bool
getIrradianceTextureIsCubeByDefault
()
const
;
76
77
// Setters
86
void
setLightDirection
(
const
nkMaths::Vector
& value) ;
94
void
setLightColor
(
const
nkMaths::Vector
& value) ;
100
void
setAlbedoColor
(
const
nkMaths::Vector
& value) ;
108
void
setEnvironmentColor
(
const
nkMaths::Vector
& value) ;
117
void
setMetalness
(
float
value) ;
126
void
setRoughness
(
float
value) ;
127
//
128
// Currently WIP.
129
//
130
// \param value
131
//
132
//void setAlbedoTexture (nkGraphics::Texture* value) ;
147
void
setEnvironmentTexture
(
nkGraphics::Texture
* value) ;
162
void
setIrradianceTexture
(
nkGraphics::Texture
* value) ;
168
void
setEnvironmentTextureIsCubeByDefault
(
bool
value) ;
174
void
setIrradianceTextureIsCubeByDefault
(
bool
value) ;
175
176
// Load
180
virtual
bool
load
()
override
;
184
virtual
void
unload
()
override
;
185
} ;
186
}
nkAstraeus::PbsMaterial::setIrradianceTexture
void setIrradianceTexture(nkGraphics::Texture *value)
nkAstraeus::PbsMaterial::setEnvironmentTexture
void setEnvironmentTexture(nkGraphics::Texture *value)
nkAstraeus::MATERIAL_TYPE
MATERIAL_TYPE
Lists all materials supported.
Definition:
MaterialType.h:12
nkAstraeus::PbsMaterial::setLightColor
void setLightColor(const nkMaths::Vector &value)
nkAstraeus::PbsMaterial::setIrradianceTextureIsCubeByDefault
void setIrradianceTextureIsCubeByDefault(bool value)
nkAstraeus::PbsMaterial::setLightDirection
void setLightDirection(const nkMaths::Vector &value)
nkAstraeus::PbsMaterial::getIrradianceTextureIsCubeByDefault
bool getIrradianceTextureIsCubeByDefault() const
nkGraphics::Texture
A texture used for rendering, hosted on GPU.
Definition:
Texture.h:35
nkAstraeus::PbsMaterial::getLightColor
nkMaths::Vector getLightColor() const
nkAstraeus::PbsMaterial::setMetalness
void setMetalness(float value)
nkAstraeus::PbsMaterial
A Physically Based Shading material.
Definition:
PbsMaterial.h:15
nkAstraeus::PbsMaterial::PbsMaterial
PbsMaterial()
nkAstraeus::PbsMaterial::getAlbedoColor
nkMaths::Vector getAlbedoColor() const
nkAstraeus::PbsMaterial::getAlbedoTexture
nkGraphics::Texture * getAlbedoTexture() const
nkAstraeus::PbsMaterial::setEnvironmentColor
void setEnvironmentColor(const nkMaths::Vector &value)
nkAstraeus::PbsMaterial::getLightDirection
nkMaths::Vector getLightDirection() const
nkAstraeus::PbsMaterial::getRoughness
float getRoughness() const
nkAstraeus::PbsMaterial::getEnvironmentTexture
nkGraphics::Texture * getEnvironmentTexture() const
nkAstraeus::PbsMaterial::getType
virtual MATERIAL_TYPE getType() const override
nkAstraeus::PbsMaterial::setEnvironmentTextureIsCubeByDefault
void setEnvironmentTextureIsCubeByDefault(bool value)
nkAstraeus::PbsMaterial::getMetalness
float getMetalness() const
nkAstraeus
Encompasses all API of component NilkinsAstraeus.
Definition:
Engine.h:7
nkAstraeus::PbsMaterial::getIrradianceTexture
nkGraphics::Texture * getIrradianceTexture() const
nkAstraeus::PbsMaterial::setAlbedoColor
void setAlbedoColor(const nkMaths::Vector &value)
nkAstraeus::PbsMaterial::~PbsMaterial
~PbsMaterial()
nkAstraeus::PbsMaterial::setRoughness
void setRoughness(float value)
nkAstraeus::PbsMaterial::getEnvironmentTextureIsCubeByDefault
bool getEnvironmentTextureIsCubeByDefault() const
nkAstraeus::PbsMaterial::load
virtual bool load() override
nkAstraeus::Material
Base class for all materials in the component.
Definition:
Material.h:14
nkAstraeus::PbsMaterial::unload
virtual void unload() override
nkAstraeus::PbsMaterial::getEnvironmentColor
nkMaths::Vector getEnvironmentColor() const
nkMaths::Vector
A 4-component vector class, with floats.
Definition:
Vector.h:12
Generated by
Doxygen
1.8.18